package com.biz.model.Hmodel.base;// default package

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;


/**
 * TBaseUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="base_user")

public class TBaseUser implements java.io.Serializable {
    // Fields    

     private String id;
     private String openId;
     private String personName;
     private Short sex;
     private String phone = "";
     private String cover;
     private Short state = 0;
     private Double integralTotal=0.00;
     private Double integralNow=0.00;
     private String birthday;
     private Short isdel = 0;
     private String createTime;
     private String shopId = "";
     private Short isShop = 0;
     private String unsubscribeTime;
     private String subscribeTime;
     private String country;
     private String province;
     private String city;



    // Constructors

    /** default constructor */
    public TBaseUser() {
    }

	/** minimal constructor */
    public TBaseUser(Short isdel, String createTime) {
        this.isdel = isdel;
        this.createTime = createTime;
    }

    public TBaseUser(String id, String openId, String personName, Short sex, String phone, String cover, Short state, Double integralTotal, Double integralNow, String birthday, Short isdel, String createTime, String shopId, Short isShop, String unsubscribeTime, String subscribeTime) {
        this.id = id;
        this.openId = openId;
        this.personName = personName;
        this.sex = sex;
        this.phone = phone;
        this.cover = cover;
        this.state = state;
        this.integralTotal = integralTotal;
        this.integralNow = integralNow;
        this.birthday = birthday;
        this.isdel = isdel;
        this.createTime = createTime;
        this.shopId = shopId;
        this.isShop = isShop;
        this.unsubscribeTime = unsubscribeTime;
        this.subscribeTime = subscribeTime;
    }

    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=50)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="openId", length=80)

    public String getOpenId() {
        return this.openId;
    }
    
    public void setOpenId(String openId) {
        this.openId = openId;
    }
    
    @Column(name="personName", length=200)

    public String getPersonName() {
        return this.personName;
    }
    
    public void setPersonName(String personName) {
        this.personName = personName;
    }
    
    @Column(name="sex")

    public Short getSex() {
        return this.sex;
    }
    
    public void setSex(Short sex) {
        this.sex = sex;
    }
    
    @Column(name="phone", length=50)

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    @Column(name="cover", length=200)

    public String getCover() {
        return this.cover;
    }
    
    public void setCover(String cover) {
        this.cover = cover;
    }
    
    @Column(name="state")

    public Short getState() {
        return this.state;
    }
    
    public void setState(Short state) {
        this.state = state;
    }
    
    @Column(name="birthday", length=50)

    public String getBirthday() {
        return this.birthday;
    }
    
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Column(name="integralTotal")
    public Double getIntegralTotal() {
        return integralTotal;
    }

    public void setIntegralTotal(Double integralTotal) {
        this.integralTotal = integralTotal;
    }

    @Column(name="integralNow")
    public Double getIntegralNow() {
        return integralNow;
    }

    public void setIntegralNow(Double integralNow) {
        this.integralNow = integralNow;
    }

    @Column(name="isdel")
    public Short getIsdel() {
        return isdel;
    }

    public void setIsdel(Short isdel) {
        this.isdel = isdel;
    }


    @Column(name="create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Column(name="shopId")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Column(name="isShop")
    public Short getIsShop() {
        return isShop;
    }

    public void setIsShop(Short isShop) {
        this.isShop = isShop;
    }


    @Column(name="unsubscribeTime")
    public String getUnsubscribeTime() {
        return unsubscribeTime;
    }

    public void setUnsubscribeTime(String unsubscribeTime) {
        this.unsubscribeTime = unsubscribeTime;
    }


    @Column(name="subscribeTime")
    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    @Column(name="country")
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Column(name="province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Column(name="city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}